package com.jiadakeji.ppm.common.coderule;

import java.util.HashMap;

/**
 *  得到规则号  顶级抽象类
 * @author xuelongjiang
 *
 */
public abstract class GetCode {

	CodeRule codeRule;
	
	/**
	 *  传入上级编码
	 * @param paras
	 * @return
	 */
	public String generateCode(HashMap<String, String> paras){
		return codeRule.generateCode(paras);
	}
	public String generateCode(){
		return codeRule.generateCode();
	}
	
	public void setCodeRule(CodeRule codeRule){
		this.codeRule = codeRule;
	}

	
}
